package com.ds.lens.flink.monitor.monitorjob.function.detector;

import com.ds.lens.data.common.constant.MonitorStateEnum;
import com.ds.lens.data.common.document.dto.MonitorEvent;
import com.ds.lens.flink.monitor.common.bo.MonitorDefinition;
import com.ds.lens.flink.monitor.common.bo.Metric;

public interface MonitorEventDetector {
    MonitorStateEnum getMonitorState();

    MonitorEvent detect(Metric metric);

    void setDefinition(MonitorDefinition definition);
}
